package com.cauli.file.model.vo.file;

import com.cauli.model.dto.BaseDTO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Map;

/**
 * @author Cauli
 * @date 2023-03-20 14:13
 * @description 文件搜索VO
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SearchFileVO", description = "文件搜索VO")
public class SearchFileVO extends BaseDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userFileId;

    private String fileName;

    private String filePath;

    private String extendName;

    private Long fileSize;

    private String fileUrl;

    private Map<String, List<String>> highLight;

    private Integer isDir;
}
